public class Task10 {
    public static void main(String[] args) {
        Task10 t=new Task10();
        double result=t.money(1,300);
        System.out.println(result);
    }
    public double money(int member,double num){
        if (member==0&&num>=100){
            return num*0.9;
        }if (member==1&&num>=200){
            return num*0.75;
        }
        if (member==1){
            return num*0.8;
        }
        return num;
    }
}
